﻿using System;
using System.Collections.Generic;
using System.Text;
using IBuy.DataAccessLayer;
using System.Data;

namespace IBuy.Entity
{
    public class Company
    {
        private IDatabase database;

        public Company()
        {
            DatabaseFactory factory = new OledbDatabaseFactory();
            database = factory.GetDatabase();
        }
        public DataSet GetAllCompany()
        {
            string sql = "select COMPANYID,COMPANYNAME from COMPANY";
            return database.GetDataSet(sql);
        }
    }
}
